@import "colorVar";

.no-wrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

.dot {
  border-radius: 100%;
  background: #ff3d49;
  width: 6px;
  height: 6px;
  display: inline-block;
}

//收缩容器
.toggle-container {
  width: 100%;
  height: 100%;
  background-color: $--background-color-toggle-container;
  //box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.30);

  position: relative;
  overflow: hidden;


  &.collapsed {
    width: $--width-toggle-container-collapsed;

    .toggle-container-header {
      padding-left: 0;
      padding-right: 0;

      .toggle-control {
        width: $--width-toggle-container-collapsed;
        transform: rotate(90deg);
      }
    }
  }

  .toggle-container-header {
    box-sizing: border-box;
    color: $--color-toggle-container-header;
    width: 100%;
    height: $--height-toggle-container-header;
    background-color: $--background-color-toggle-container-header;
    //box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.30);
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: relative;

    .toggle-control {
      box-sizing: border-box;
      cursor: pointer;
      //border-radius: 4px;
      position: absolute;
      right: 0px;
      top: 0px;
      width: $--height-toggle-container-header;
      height: $--height-toggle-container-header;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;

      .toggle-control-button {
        cursor: pointer;
        color: $--color-toggle-container-header-control;
        border: 1px solid $--border-color-toggle-container-header-control;
        border-radius: 2px;
        width: 12px;
        height: 12px;
        text-align: center;
        display: flex;
        align-items: center;
      }
    }
  }

  .toggle-container-body {
    color: $--color-toggle-container-body;
    position: absolute;
    top: $--height-toggle-container-header;
    bottom: 0px;
    width: 100%;

    .toggle-container-body-inner {
      //height: 100%;
      position: absolute;
      top: $--margin-toggle-container-body-inner;
      right: $--margin-toggle-container-body-inner;
      bottom: $--margin-toggle-container-body-inner;
      left: $--margin-toggle-container-body-inner;

      //margin: $--margin-toggle-container-body-inner;
    }
  }

  .toggle-container-body-collapsed {
    color: $--color-toggle-container-body;
    position: absolute;
    top: $--height-toggle-container-header;
    bottom: 0px;
    width: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    > div {
      margin-bottom: 5px;

      &:first-child {
        margin-top: 9px;
      }
    }
  }
}

//搜索框
.input-search-container {
  background-color: $--background-color-input-search-container;
  border: 1px solid $--border-color-input-search-container;
  box-shadow: rgba(0, 21, 61, 0.4) 0px 0px 4px 0px, rgb(0, 56, 113) 0px 1px 1px 0px inset;
  border-radius: $--border-radius-input-search-container;
  box-sizing: border-box;

  .el-input__inner {
    background-color: $--background-color-input-search-container;
    border: none;
    color: $--color-input-search-container;
    height: $--height-input-search-container;

    &::-webkit-input-placeholder {
      color: $--color-input-search-container;
    }
  }

  .el-input-group__append {
    background-color: transparent;
    border: none;

    .el-button {
      border: none;
    }

    .el-icon-search {
      font-size: 18px;
      color: $--color-input-search-container-icon;
    }
  }

}

//菜单tree
.menu-container {
  width: 100%;
  height: 100%;
  //background-color: #003871;
  background-color: transparent;

  @mixin el-menu-item {
    outline: 0;
    background-color: $--background-color-el-menu;
    height: auto;
    line-height: $--height-el-submenu__title;
    padding: 0 0 0 30px !important;
  }

  .el-menu {
    color: #9ac9f0;
    background-color: $--background-color-el-menu;
    border-right: none;
    margin: 0;

    > .el-submenu {
      &.is-selected {
        //&.select-item {

        > .el-submenu__title {
          border-left: 2px solid $--border-left-color-selected-menu;
          background-image: linear-gradient(90deg, rgba(0, 163, 215, 0.41) 0%, rgba(0, 140, 215, 0.00) 98%);
        }

        .el-submenu {
          //border-left: 2px solid #90C3E9;
        }
      }

      //.is-selected {
      //  background-image: linear-gradient(90deg, rgba(0, 163, 215, 0.41) 0%, rgba(0, 140, 215, 0.00) 98%);
      //}

      .el-submenu {
        .el-submenu__title {
          border-left: 2px solid #41759B;
          background-image: none;
        }

        &.is-selected {

          .el-submenu__title {
            border-left: 2px solid #ffffff;
            background-image: none;

            a.sub-menu-link-1 {
              color: #ffffff;
            }


          }

          &.sub-menu-2 {

            .el-submenu__title {
              a {
                color: #cae5f4;
              }

              &:before {
                background: #cae5f4;
              }

            }
          }


        }

        .sub-menu-2 {
          .el-submenu__title {
            border-left: none;
            background-image: none;
            vertical-align: center;

            &:before {
              border-radius: 100%;
              content: '';
              display: inline-block;
              width: 7px;
              height: 7px;
              background: #41759B;
              float: left;
              position: relative;
              top: 14px;
            }

            .sub-menu-title {


            }
          }
        }
      }
    }

    .el-menu--inline {
      padding: 5px 0 !important;
      //box-sizing: border-box;
      //overflow: hidden;
    }

    .empty-children {
      .el-menu--inline {
        display: none;
      }
    }

  }

  .el-menu-item {
    @include el-menu-item;

    &:focus {
      @include el-menu-item;
    }

    &:hover {
      @include el-menu-item;
    }
  }

  .el-submenu__title {
    cursor: pointer;
    color: $--color-el-submenu__title;
    height: $--height-el-submenu__title;
    line-height: $--height-el-submenu__title;
    //padding: 0 0 0 30px !important;
    padding: 0 0 0 0 !important;
    //margin: 0 0 0 30px !important;

    &:hover {
      background-color: transparent;
    }

    a {
      color: $--color-el-submenu__title;
    }

    i {
      color: $--color-el-submenu__title;
      width: 8px;
      height: 8px;
      font-size: 12px;
      position: relative;
      top: -2px;
    }

    .el-submenu__icon-arrow {
      display: none;
    }
  }

  .sub-menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .sub-menu-link {
      padding: 0 0 0 8px;

      .sub-menu-icon {
        box-sizing: border-box;
        //background-color: #00cd9f;
        width: 15px;
        height: 15px;
        display: inline-block;
        //overflow: hidden;
      }
    }
  }

}

//ListView
.list-view {
  @include full-width-height;
  overflow: hidden;

  .list-view-item {
    background: url("./images/list-view-item-bg.svg") no-repeat top left;
    background-size: 100% 100%;
    color: $--color-list-view-item;
    cursor: pointer;
    line-height: $--height-list-view-item;
    width: 100%;
    padding: 0 10px;

    &.active {
      background: url("./images/list-view-item-bg-on.svg") no-repeat top left;
      background-size: 100% 100%;
    }
  }

}

.layout-flex {
  display: flex;
  align-items: center;

  .layout-inline {
    margin-right: $--margin-layout-inline;

    &:last-child {
      margin-right: 0;
    }
  }
}

.layout-inline {
  display: inline-block;
}

.layout-flex-normal {
  display: flex;
  //align-items: center;
  width: 100%;
  height: 100%;

  .layout-flex-normal-left {
    width: 244px;
    height: 100%;
    position: relative;

    &:after {
      content: " ";
      /* display: block; */
      width: 1px;
      height: 100%;
      position: absolute;
      right: 0;
      top: 0;
      /* opacity: 0.3; */
      /* transform: scaleY(-1) rotate(
      90deg); */
      background-image: radial-gradient(50% 66%, rgba(0, 0, 0, 0.4) 1%, rgba(0, 0, 0, 0) 34%);
    }
  }

  .layout-flex-normal-center {
    flex: 1;
    margin-left: 36px;
  }
}

.layout-flex-avg {
  display: flex;
  //align-items: center;
  width: 100%;
  height: 100%;

  &.vertical {
    flex-direction: column;
  }

  .v-line {
    width: 1px;
    height: 100%;
    background-image: radial-gradient(50% 66%, rgba(0, 0, 0, 0.4) 1%, rgba(0, 0, 0, 0) 34%);
  }

  .layout-flex-avg-center {
    flex: 1;
  }
}

//FormPanel
.form-panel {
  width: 100%;
  height: 100%;
  position: relative;
  //background-image: radial-gradient(50% 94%, #003164 52%, #002A52 95%);

  .form-panel-body {
    position: absolute;
    top: 0;
    left: 0;
    bottom: $--height-form-panel-footer;
    width: 100%;
    color: #5ED1FF;
    overflow: auto;
    overflow-x: hidden;

    .form-panel-body-inner {
      //width: 100%;
      //height: 100%;
      position: absolute;
      top: 15px;
      left: 15px;
      bottom: 15px;
      right: 15px;
    }
  }

  .form-panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: $--height-form-panel-footer;


    .form-panel-footer-bg {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: $--height-form-panel-footer;
      line-height: $--height-form-panel-footer;
      background: url("./images/list-view-item-bg-on.svg") no-repeat top left;
      background-size: 100% 100%;
      transform: rotate(180deg);
    }

    .form-panel-footer-inner {
      position: relative;
      z-index: 99;
      height: $--height-form-panel-footer;
      line-height: $--height-form-panel-footer;
      margin: 0 32px;
      display: flex;
      justify-content: flex-end;
      align-items: center;

      .footer-button {
        padding: 9px 22px;
      }
    }
  }
}

//Drawer抽屉
.drawer-panel {

  .el-drawer {
    background-color: transparent;
    background-image: $--background-image-el-drawer;
    box-shadow: $--box-shadow-el-drawer;
    color: $--color-el-drawer;
  }

  .el-drawer__header {
    background: $--background-el-drawer__header;
    border-radius: 4px 4px 0 0;
    align-items: center;
    font-size: 14px;
    color: $--color-el-drawer__header;
    display: flex;
    height: $--height-el-drawer__header;
    line-height: $--height-el-drawer__header;
    margin-bottom: 0px;
    padding: 0 22px;

    .el-dialog__close {
      color: $--color-el-dialog__close;
    }
  }


  .el-drawer__body {
    //padding: 30px;
    padding: 0px;
    overflow: hidden;
  }
}


//Input输入框
.el-input__inner {
  background: $--background-el-input__inner;
  border: $--border-el-input__inner;
  box-shadow: $--box-shadow-el-input__inner;
  border-radius: 4px;
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
}

.el-checkbox__inner {
  border: 1px solid $--border-color-checkbox__inner;
}

//Select选择器
.el-select-dropdown {
  border: $--border-el-select-dropdown;


  .el-select-dropdown__item {


    &.hover {
      background-color: $--background-color-el-select-dropdown__item;
    }

    &:hover {
      background-color: $--background-color-el-select-dropdown__item;
    }
  }

  &[x-placement^="bottom"] .popper__arrow {
    border-bottom-color: $--border-color-popper__arrow;

    &:after {
      border-bottom-color: $--border-color-popper__arrow__after;
    }
  }

  &[x-placement^="top"] .popper__arrow {
    border-top-color: $--border-color-popper__arrow;

    &:after {
      border-top-color: $--border-color-popper__arrow__after;
    }
  }

  &[x-placement^="left"] .popper__arrow {
    border-left-color: $--border-color-popper__arrow;

    &:after {
      border-left-color: $--border-color-popper__arrow__after;
    }
  }

  &[x-placement^="right"] .popper__arrow {
    border-right-color: $--border-color-popper__arrow;

    &:after {
      border-right-color: $--border-color-popper__arrow__after;
    }
  }
}

//Form表单
.el-form {

  .el-form-item__label {
    color: $--color-el-form-item__label;
  }
}

//日期选择器
.el-date-editor {
  .el-range-input {
    background-color: transparent;
  }
}

.el-date-range-picker__content.is-left {
  border-right: $--border-right-el-date-range-picker;
}

.el-radio-button__inner {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  background: #045083;
  border: 1px solid #001D43;
  border: none;
}

.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  color: #023462;
  background-color: rgb(218, 239, 255);
  border-color: rgb(218, 239, 255);
}

.el-date-table td.today span {
  color: $--color-el-date-range-picker-today;
  font-weight: bold;
}

//Table表格
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: transparent;
}

.el-table tr.el-table__row--striped {
  background-color: rgba(1, 96, 157, 0.25);;
}

.el-table th.is-leaf {
  border-bottom: 1px solid #001d43 !important;
}

.el-upload--picture-card {
  background-color: $--background-el-drawer__header;
}


//按钮
.el-button--primary {
  background: none;
  background-image: linear-gradient(180deg, rgba(2, 155, 237, 0.10) 3%, rgba(2, 155, 237, 0.40) 100%);
  border-radius: 4px;
  color: #FFFFFF;

  &:active {
    background: none;
    background-image: linear-gradient(180deg, rgba(2, 155, 237, 0.10) 3%, rgba(2, 155, 237, 0.40) 100%);
    border-radius: 4px;
    color: #FFFFFF;
  }
}

.custom-button {
  cursor: pointer;
  display: inline-block;
  color: $--color-custom-button;

  .custom-button-icon {
    color: $--color-custom-button-icon;
  }
}

.split-vline {
  background-image: $--background-split-vline;
  display: inline-block;
  height: 14px;
  width: 2px;
}

//相框
.photo-albums {
  width: 400px;
  height: 257px;
  position: relative;
  overflow: hidden;

  .photo-albums-face {
    cursor: pointer;
    @include full-width-height;
  }

  .photo-albums-desc {
    background: rgba(0, 0, 0, 0.45);
    color: #FFFFFF;
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

//页面布局
.page-layout {
  @include full-width-height;
  position: relative;

  .page-layout-header {
    height: $--height-page-layout-header;
    line-height: $--height-page-layout-header;
    background: $--background-page-layout-header;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.06);

    .page-layout-header-title {
      color: $--color-page-layout-header-title;
      margin: 0 24px;
    }
  }

  .page-layout-body {
    position: absolute;
    top: $--height-page-layout-header;
    left: 0px;
    right: 0px;
    bottom: 0px;
  }
}

//间距面板
.card-panel {
  position: relative;
  @include full-width-height;
  box-sizing: border-box;
  overflow: hidden;

  .card-panel-body {
    background-image: $--background-card-panel-body;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.40);
    position: absolute;
    left: $--margin-card-panel-body;
    top: $--margin-card-panel-body;
    right: $--margin-card-panel-body;
    bottom: $--margin-card-panel-body;
    padding: $--padding-card-panel-body;
  }

  &.no-border {
    .card-panel-body {
      background-image: none;
      box-shadow: none;
    }
  }
}

//自定义选项卡
.plain-tabs {
  display: flex;
  align-items: center;

  .plain-tabs-item {
    margin-right: 15px;
    color: $--color-plain-tabs-item;
    cursor: pointer;

    &:last-child {
      margin-right: 0px;
    }

    &.active {
      color: $--color-plain-tabs-item-active;
    }
  }
}


.status-bar {
  background-image: radial-gradient(50% 95%, #002A52 50%, #002A52 95%);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  padding: 16px 33px;
  color: $--color-base;
}

.color-base {
  color: $--color-white;
}

.text-white {
  display: inline-block;
  color: $--color-white;
}

.page-flex-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;

  .page-flex-status-bar {
    //height: 56px;
    //width: 100%;
    margin: 15px;
    margin-bottom: 0px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .page-flex-card-panel {
    flex: 1;

    &.no-border {
      .card-panel-body {
        bottom: 0;
      }
    }
  }
}

.system-header-menu-item {
  display: flex;
  justify-content: center;
  cursor: pointer;
}
